<?php
try {
    $dbh = new PDO('mysql:host=localhost;dbname=mhd', "root", "*Jsnjcc*");
    // foreach($dbh->query('SELECT * from tbl_log') as $row) {
    //     print_r($row);
    // }
    $smt = $dbh->query('SELECT * from tbl_member');
    while ($row = $smt->fetch()) {
        echo json_encode($row);
    }
    $dbh = null;
} catch (PDOException $e) {
    print "Error!: " . $e->getMessage() . "<br/>";
    die();
}
